﻿@model Person

@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <title>title</title>
</head>
<body>
<div>
    <h2>abc试图</h2>
    <h3>@Model.Id</h3>
    <h3>@Model.Name</h3>
</div>
</body>
</html>

<label asp-for="Name"  ></label>
<input asp-for="Name"/>

@*<h2>@Model.Id</h2>
<h2>@Model.Name</h2>
<h2>@ViewBag.sex</h2>
<h3>@name</h3>*@
@*<h3>@(1+1)</h3>*@
@*<a href="@Url>首页</a>*@
@Html.ActionLink("百度","Print");
@*@{
    //试图传播
    Html.RenderPartial("abc",Model);
}*@

@*//不适用*@
@await Component.InvokeAsync("Abc")

<form asp-controller="Home" asp-action="Print" method="post">
    <input type="submit" value="提交"></input>
</form>